package sv.com.renacempleo.dto.red;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import sv.com.renacempleo.dto.ctg.CtgCatalogo;

@Entity
@Table(name = "red_oferta_formacion_academica")
public class RedOfertaFormacionAcademica implements Serializable{

	private static final long serialVersionUID = 5342106481501066598L;
	
	@Id
	@Column(name = "red_ofaca_id", nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long redOfertaFormacionAcademicaId;
	@ManyToOne
	@JoinColumn(name = "red_ofe_id", nullable = false)
	private RedOferta redOferta;
	@ManyToOne
	@JoinColumn(name = "ctg_esc_id", nullable = false)
	private CtgCatalogo ctgEscolaridad;
	@ManyToOne
	@JoinColumn(name = "ctg_esp_id", nullable = false)
	private CtgCatalogo ctgEspecialidad;
	public Long getRedOfertaFormacionAcademicaId() {
		return redOfertaFormacionAcademicaId;
	}
	public void setRedOfertaFormacionAcademicaId(Long redOfertaFormacionAcademicaId) {
		this.redOfertaFormacionAcademicaId = redOfertaFormacionAcademicaId;
	}
	public CtgCatalogo getCtgEscolaridad() {
		return ctgEscolaridad;
	}
	public void setCtgEscolaridad(CtgCatalogo ctgEscolaridad) {
		this.ctgEscolaridad = ctgEscolaridad;
	}
	public RedOferta getRedOferta() {
		return redOferta;
	}
	public void setRedOferta(RedOferta redOferta) {
		this.redOferta = redOferta;
	}
	public CtgCatalogo getCtgEspecialidad() {
		return ctgEspecialidad;
	}
	public void setCtgEspecialidad(CtgCatalogo ctgEspecialidad) {
		this.ctgEspecialidad = ctgEspecialidad;
	}
	
}
